<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>JPetStore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css"/>
    <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css"/>
    <script th:src = "@{/JS/jquery-3.2.1.js}"></script>
    <script th:src = "@{/JS/jquery-ui.js}"></script>
</head>
<body>
    <div th:replace="/common/header.html"></div>
    <div id="Content">
        <div id="BackLink">
            <a href="/catalog/main">回到主菜单</a>
        </div>
        <div id="Catalog">

            <table>
                <tr>
                    <th>&nbsp;</th>
                    <th>Product ID</th>
                    <th>Name</th>
                </tr>

                    <tr th:each="product:${productList}">
                        <td>
                            <a th:href="@{'/catalog/viewProduct?productId='+${product.productId}}"><img th:src="${product.getImages()}" style="width: 200px;height: 200px"></a>
                        </td>
                        <td th:text="${product.description}">
                        </td>
                        <td th:text="${product.name}"></td>
                    </tr>
                <tr><td></td></tr>

            </table>

        </div>
    </div>
    <div th:replace="/common/footer.html"></div>
</body>
</html>